import request from '@/utils/request'
// 查询我的服务队列表
export function selectmyServers() {
  return request({
    url: '/migrate/selectmyservers',
    method: 'get'
    // data: data
  })
}
// 获取服务队详细信息
export function selectServerInfo(data) {
  return request({
    url: '/migrate/selectteam?id='+data,
    method: 'get'
  })
}
// 判断是否加入组织
export function Isjoin(data) {
  return request({
    url: '/migrate/isjoin?teamid='+data,
    method: 'get'
  })
}
// 加入组织
export function joinServer(data) {
  return request({
    url: '/migrate/joinServer?teamid='+data,
    method: 'get'
  })
}
// 退出组织
export function outServer(data) {
  return request({
    url: '/migrate/outServer?teamid='+data,
    method: 'get'
  })
}
//查看是否加入了暖心团
export function Isjoinheart() {
  return request({
    url: '/migrate/isjoinHeart',
    method: 'get'
  })
}
//加入暖心团
export function joinheart() {
  return request({
    url: '/migrate/joinHeart',
    method: 'get'
  })
}
//加入暖心团
export function outheart() {
  return request({
    url: '/migrate/outHeart',
    method: 'get'
  })
}
//获取服务队人员
export function getMembers(data) {
  return request({
    url: '/migrate/selectmember?teamid='+data,
    method: 'get'
  })
}

//获取服务队人员
export function selectServerBykey(data) {
  return request({
    url: '/migrate/selectServerBykey?key='+data,
    method: 'get'
  })
}
//判断是否为团队领导人
export function isTeamLeader(data) {
  return request({
    url: '/migrate/isteamleader?teamid='+data,
    method: 'get'
  })
}
//获取我的党费
export function getmyDues(startDate,endDate) {
  return request({
    url: '/view/mypartyDues?startDate='+startDate+'&endDate='+endDate,
    method: 'get',
  })
}
//解散组织
export function killteam(data) {
  return request({
    url: '/migrate/killteam?teamid='+data,
    method: 'get',
  })
}
//获取暖心团成员

export function getHeartMember(data) {
  return request({
    url: '/migrate/getHeartMember?teamid='+data,
    method: 'get',
  })
}